<?php
/*
	首页
*/

defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return['gift_type']=$this->gift_type;
$return['params']=array('type'=>0);
if($_RQ['op']=='main'){	
	$return['list']=array();
	$return['setting']['pluginnav']=$return['pluginset']['bankuai'];
	$return['setting']['hdps']=$return['pluginset']['hdps'];
	$p_group=pdo_getall('jy_xunichong_group',array('uniacid'=>$_SESSION['uniacid'],'status'=>'1'),'','star desc');
	$notice_list = pdo_fetchall('SELECT * FROM ' . tablename('jy_weishop_notice') . ' WHERE uniacid=:uniacid AND status=1  ORDER BY id DESC limit 4', array(':uniacid' => $_SESSION['uniacid']));
	if($notice_list){
		foreach($notice_list as &$notice){
			$notice['createtime']=date('Y-m-d h:i',$notice['createtime']);
		}
	}
	$return['user']=model('core/member')->basic($_SESSION['uid']);
	$return['login']=$_SESSION['uid']?1:2;
	$return['notice_list']=$notice_list;
	$return['p_group']=$p_group;
	$return['params']['pid']=0;
	set_html('title',$return['pluginset']['title']?'首页-'.$return['pluginset']['title']:'首页-新虚拟充值');
	$return['sharedata']=array(
		'title'=>$return['pluginset']['share_title']?$return['pluginset']['share_title']:'首页-新虚拟充值',
		'desc'=>$return['pluginset']['share_desc']?$return['pluginset']['share_desc']:'新虚拟充值，主流经典新虚拟充值，新购买模式！',
		'link'=>custom_url('jy_xunichong/index//fromuser='.$_SESSION['uid'],true),
		'imgUrl'=>$return['pluginset']['share_image']?tomedia($return['pluginset']['share_image']):tomedia($return['pluginset']['icon'])
	);
	exi($return);
}
?>